//
//  AppNetworkingManager+OAAttendance.h
//  OANetworkManager_Example
//
//  Created by TFAppleWork-Summer on 2018/2/27.
//  Copyright © 2018年 GuoRui. All rights reserved.
//

#import "AppNetworkingManager.h"
#import <Photos/Photos.h>
@class OAAttendanceRecordModel;
@class OAExceptionReprotCommitModel;
@interface AppNetworkingManager (OAAttendance)

/**
 考勤记录

 @param date 查询日期
 @param complete :exceptionRecordArray-所有异常记录的数组 ，attendanceRecordModel-当前考勤情况对象，error - 接口失败错误
 */
+(TFRequest *)getAttendanceDateInfoWithDate:(long long)date
                                   complete:(void(^)(NSArray<OAExceptionReprotCommitModel*> * exceptionRecordArray,
                                                     OAAttendanceRecordModel *attendanceRecordModel,
                                                     NSError *error ))complete;


/**
 @param date 查询时间（精确到月份）
 @param complete 接口回调 返回的response 是 存在异常考勤的日期的数组

 */
+(TFRequest *)getExpSignWithDate:(long long)date complete:(OANetworkingObjectBlock)complete;



/**
  提交/修改 维护信息  complete 返回 OAExceptionReprotCommitModel对象
 
 @param model commitModel (commitModle 的explain字段为必填项)
 @param images 需要上传的图片
 @param complete 接口回调
 */
+(TFRequest *)addOrUpdateWithString:(OAExceptionReprotCommitModel *)model
                             images:(NSArray<UIImage *> *)images
                           complete:(OANetworkingObjectBlock)complete;



@end
